<?php
namespace Fendx\Funcs;

use Fendx\Core\RequestContext;

/**
 * 领域工具箱，用于实现SaaS
 *
 */
class FendxRealm
{
    const KEY = '__saas_realm';

    public static function setRealm($realm) {
        RequestContext::set(self::KEY, $realm);
    }

    public static function getRealm($default = null) {
        return RequestContext::get(self::KEY, $default);
    }
}
